// 中台接口
import {request} from "@utils/request";
let userinfo = JSON.parse(sessionStorage.getItem('userInfo'))
let organizationId = 0;
if (userinfo) {
  organizationId = userinfo.tenantId
}
const middleApi = {
  customizeHeaders: "/indv/v1/" + organizationId + "/customize-headers",
  customizeOpinions: "/indv/v1/" + organizationId + "/customize-opinions",
}
// 获取自定义表头
export function getCustomizeHeaders(parameter) {
  return request({
    url: middleApi.customizeHeaders,
    method: "get",
    params: parameter,
  });
}
//保存自定义表头
export function putCustomizeHeaders(parameter) {
  return request({
    url: middleApi.customizeHeaders,
    method: "put",
    data: parameter,
  });
}
//获取自定义处理意见
export function getCustomizeOpinions(parameter) {
  return request({
    url: middleApi.customizeOpinions,
    method: "get",
    params: parameter,
  });
}
//保存自定义处理意见
export function putCustomizeOpinions(parameter) {
  return request({
    url: middleApi.customizeOpinions,
    method: "put",
    data: parameter,
  });
}
export {userinfo}